/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package argentracker.services;

/**
 * briefly description.
 * 
 * extense description.
 * 
 * @author matero (matero _at_ gmail _dot_ com)
 */
public class ChppApplication {

    public static final class Options {

        public static final class Builder {
            public static ChppApplication.Options withName(String chppApplicationName) {
                return new ChppApplication.Options().name(chppApplicationName);
            }

            public static ChppApplication.Options withKey(String chppApplicationKey) {
                return new ChppApplication.Options().key(chppApplicationKey);
            }

            public static ChppApplication.Options withID(int chppApplicationID) {
                return new ChppApplication.Options().id(chppApplicationID);
            }
        }

        private String chppName;
        private String chppKey;
        private int chppID;

        public Options name(String chppApplicationName) {
            this.chppName = chppApplicationName;
            return this;
        }

        public Options key(String chppApplicationKey) {
            this.chppKey = chppApplicationKey;
            return this;
        }

        public Options id(int chppApplicationID) {
            this.chppID = chppApplicationID;
            return this;
        }

        public final String getChppName() {
            return this.chppName;
        }

        public final String getChppKey() {
            return this.chppKey;
        }

        public final int getChppID() {
            return this.chppID;
        }
    }

    public final String name;
    public final String chppKey;
    public final int chppID;

    public ChppApplication(Options options) {
        this.name = options.getChppName();
        this.chppKey = options.getChppKey();
        this.chppID = options.getChppID();
    }
}
